CXX0X := /Users/yli/gcc46/bin/g++ -L/Users/yli/gcc46/lib -I/Users/yli/gcc46/include 
CXX := g++-mp-4.5
CFLAGS := -Wall -O3 -m64 -pedantic -ftree-vectorize -mfpmath=sse -ffast-math -lntl -lgsl -lgslcblas -lm
DEBUG := -Wall -pedantic -O1 -m64 -lntl -lgsl -lgslcblas -lm
INCLUDE := -I/usr/local/include
SOURCE := simscrub.cpp lencode.cpp ldecode.cpp bencode.cpp bdecode.cpp scrub.cpp huffman.cpp cell.cpp

all: silentl

silentl: *.cpp *.hpp
	${CXX} ${INCLUDE} ${CFLAGS} -DLDPC ${SOURCE} -o simscrub

verbosel: *.cpp *.hpp
	${CXX} ${INCLUDE} ${CFLAGS} -DVERBOSE -DLDPC ${SOURCE} -o simscrubv

silentb: *.cpp *.hpp
	${CXX} ${INCLUDE} ${CFLAGS} -DBCH ${SOURCE} -o simscrub

verboseb: *.cpp *.hpp
	${CXX} ${INCLUDE} ${CFLAGS} -DVERBOSE -DBCH ${SOURCE} -o simscrubv

pr1: *.cpp *.hpp
	${CXX} ${INCLUDE} ${CFLAGS} -DPR1  ${SOURCE} -o simscrub

pr1v: *.cpp *.hpp
	${CXX} ${INCLUDE} ${CFLAGS} -DVERBOSE -DPR1  ${SOURCE} -o simscrubv


debug: *.cpp *.hpp
	${CXX} ${INCLUDE} ${DEBUG} -DVERBOSE  ${SOURCE} -o simscrub

clean: 
	rm simscrub > /dev/null 2>&1